package com.mxfcode.front.bbs_business.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @类名 HomePageController
 * @描述 TODO
 * @作者 mxf
 * @创建日期 2021/1/29 15:28
 **/
@Controller
@RequestMapping("/homeController")
public class HomePageController {

    private static final Logger logger= LoggerFactory.getLogger(IndexController.class);

    @GetMapping(value = "/goArticlesPage" )
    public String goArticlesPage(){
        logger.info("================跳转博文列表==================");
        return "article";
    }

    @GetMapping(value = "/goDiaryPage" )
    public String goDiaryPage(){
        logger.info("================跳转博文列表==================");
        return "diary";
    }

    @GetMapping(value = "/goLinkPage" )
    public String goLinkPage(){
        logger.info("================跳转博文列表==================");
        return "link";
    }

    @GetMapping(value = "/goMessagePage" )
    public String goMessagePage(){
        logger.info("================跳转博文列表==================");
        return "message";
    }
    @GetMapping(value = "/goReadPage" )
    public String goReadPage(){
        logger.info("================跳转博文列表==================");
        return "message";
    }
    @RequestMapping(path = "/error", method = RequestMethod.GET)
    public String getErrorPage() {
        return "/error/500";
    }
}
